﻿using System;
using Sapit.Attributes.Interfaces;

namespace Sapit.Windsor.Attributes
{
    /// <summary>
    /// Apply this attribute to methods that should be retried.
    /// </summary>
    public class RetryAttribute : Attribute, IRetry
    {
        /// <summary>
        /// Maximum number of times to retry failing method invocations
        /// </summary>
        public int TimesToRetry { get; set; }
    }
}
